Git commit规范

这里给出了一个比较合理的git规范,在commit的时候使用这个规范进行填写。关于这个规范参考下面的连接:5 Useful Tips For A Better Commit Message

使用git commit,会打开一个文件,允许你填写更多的commit内容,请参考下面的commit样本,每次详细填写自己的commit

1
2
3
4
5
6
7
8
9
# 50-character subject line
#
# 72-character wrapped longer description. This should answer:
#
# * Why was this change necessary?
# * How does it address the problem?
# * Are there any side effects?
#
# Include a link to the ticket, if any.

一个例子:

1
2
3
4
5
6
7
8
9
10
Redirect user to the requested page after login

https://trello.com/path/to/relevant/card

Users were being redirected to the home page after login, which is less
useful than redirecting to the page they had originally requested before
being redirected to the login form.

* Store requested path in a session variable
* Redirect to the stored location after successfully logging in the user
0%